#ifndef __SERIAL_H
#define __SERIAL_H

#include <pthread.h>

#define BUF_SIZE 32		

extern pthread_mutex_t uart_lock;

int uart_init(char *device);
int uart_send(char *data);
// int uart_recv(char *buf, size_t len);
void uart_clean(void);
void *uart_receive_thread(void *arg);

#endif 